{% if(video.videoFileLink.getFirst().videoFile.getSourceServer() == 'J') %}
<div id="myElement">Loading the player...</div>
<script type="text/javascript" src="{{url('vendor/jwplayer/jwplayer.js')}}"></script>
<script type="text/javascript">jwplayer.key="Tl/cGRKD5+mHxuBA9abJoeWYGnxLoRlF9Xt8VQHJS2nHMmlibF4GZ6FPp4Zk0206";</script>

<script>
    jwplayer("myElement").setup({
      "autoStart": true ,
      width: "100%",
      height: "520",
      abouttext: "Konnect+",
      //flashplayer: "public/vendor/jwplayer/jwplayer.flash.swf",
      logo: {
            file: "{{ url('layouts/skins/frontend/v2/images/logo.png') }}",
            link: '',
            hide : true
        },

      skin: "{{url('vendor/jwplayer/skins/five.xml')}}",
      //image: "{{url('public/layouts/skins/frontend/defaults/images/img1.jpg')}}",
      playlist: [{
        sources: [
            {% for videolink in video.videoFileLink %}

            {
                file: "{{helper.getPathSourceVideoFile(videolink.videoFile)}}",
                label: "720p SD"
            },
            {% endfor %}
        ],
          title: "{{ video.videoDescription.getName()}}",
        tracks: [{
          file: "{{url('vendor/jwplayer/big.srt')}}",
            label: "English"

        },{
            file: "{{url('vendor/jwplayer/small.srt')}}",

            label: "French"
        }]
      }],

      plugins: {
          '{{url('vendor/jwplayer/plugins/overlay/overlay.js')}}': {
            text: 'Text that you want to go within the overlayed banner'
          }
        }
    });
</script>
{% else %}
  {{helper.getPathSourceVideoFile(video.videoFileLink.getFirst().videoFile)}}
{% endif %}